package com.menghao.sso.client.validation;

import com.menghao.sso.client.model.ValidateBean;

/**
 * <p>校验接口.<br>
 *
 * @author 17070717.
 * @version 2017/11/2.
 */
public interface TicketValidator {

    /**
     * 对指定的Service进行ticket验证
     *
     * @param validateBean 验证Bean
     * @return 返回验证结果 (never null)
     * @throws ValidationException 验证的时候出现的异常
     */
    Boolean validate(ValidateBean validateBean) throws ValidationException;
}
